const { ccclass, property } = cc._decorator;

/**服务端代码用nodejs 在文件websocketServer里面*/
@ccclass
export default class NewClass extends cc.Component {

    onLoad() {
        GWebsocket.init();
    }

    /**发送信息测试 */
    sendInfo(){
        GWebsocket.send({id: 1, name: "luobing", enterTime: 100, money: 999});
    }

}